package com.kabuda.blog.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kabuda.blog.dao.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author kabuda
 * @create 2023-01-16 14:24
 */
@Mapper
public interface TagMapper extends BaseMapper<Tag> {

    List<Tag> getTagByArticleId( @Param("id") Long id);

    List<Long> getHotTagId(@Param("limit") int limit);

    List<Tag> getTagByTagIds(@Param("tagIds") List<Long> tagIds);
}
